{{include "../layout_header.html"}}
<div class=" container-fluid">
    <div class=" page-header">
        <h2 class=" text-center text-primary">管理员列表</h2>
    </div>
    <form class=" form-inline" style="margin: 10px 0" action="/adminInfo/list" method="GET">
        <input type="hidden" name="pageIndex" value="1">
        <div class=" form-group">
            <label for="" class=" control-label">管理员账号</label>
            <input type="text" name="adminid" placeholder="输入账号查询" class=" form-control">
        </div>
        <div class=" form-group">
            <label for="" class=" control-label">真实姓名</label>
            <input type="text" name="realname" placeholder="输入姓名查询" class=" form-control">
        </div>
       
        <div class=" form-group">
            <!-- submit提交表单 -->
            <button type="submit" class=" btn btn-primary">
                <span class=" glyphicon glyphicon-search"></span>查询
            </button>
        </div>
    </form>

    <div class=" btn-group">
        <a href="/adminInfo/addAdminInfo" class=" btn btn-primary">
            <span class=" glyphicon glyphicon-plus"></span>新增
        </a>
        <button type="button" class=" btn btn-warning btn-edit">
            <span class=" glyphicon glyphicon-pencil"></span>编辑
        </button>
        <button type="button" class=" btn btn-danger btn-delete">
            <span class=" glyphicon glyphicon-trash"></span>删除
        </button>
        <button type="button" class=" btn btn-info" onclick="window.open('/adminInfo/exportToExcel'+location.search)">
            <span class=" glyphicon glyphicon-export"></span>导出为EXCEL
        </button>
    </div>
    <div class=" table-responsive">
        <table class=" table table-hover table-striped table-bordered">
            <tr>
                <th>
                    <label for="ckAll">
                        <input type="checkbox" id="ckAll" data-toggle="ckAll" data-target="[name='ck']">全选
                    </label>
                </th>
                <th>管理员编号</th>
                <th>管理员密码</th>
                <th>管理员姓名</th>
                <th>手机号</th>
            </tr>

            {{each adminInfoList item index}}
            <%
                    var arr=[];
                    arr.length=item.adminpwd.length;
                    arr.fill("*");
                %>
            <tr>
                <td>
                    <input type="checkbox" name="ck" value="{{item.id}}">
                </td>
                <td>{{item.adminid}}</td>
                <td>{{arr.join('')}}</td>
                <td>{{item.realname}}</td>
                <td>{{item.admintel}}</td>
            </tr>
            {{/each}}
        </table>
    </div>
</div>
{{include "../layout_pagination.html"}}


